#include <stdio.h>
void shift(char *, int *);
void Add(int *, int *, int *);
#define MAX 504








char cha[MAX] = {0}, chb[MAX] = {0};















int a[MAX] = {0}, b[MAX] = {0}, c[MAX] = {0}, i = 0, j;

int main(void) {
	scanf("%s", cha);
	scanf("%s", chb);
	shift(cha, a);
	shift(chb, b);

	Add(a, b, c);

	while (c[i] == 0) {
		i++;
	}
	for (i; i < MAX; i++) {
		printf("%d", c[i]);
	}

	return 0;
}

void shift(char *cha, int *a) {
	int i = MAX - 1, j = MAX - 1;

	while (cha[i] == 0) {
		i--;
	}
	for (i; i >= 0; i--) {
		a[j] = cha[i] - '0';
		j--;
	}
	return;
}

void Add(int *a, int *b, int *c) {
	int i;
	for (i = MAX - 1; i > 0; i--) {
		c[i] += a[i] + b[i];
		if (c[i] > 9) {
			c[i] -= 10;
			c[i - 1]++;
		}
	}

	return;
}